package com.sinooceangroup.capital.consumer.controller;

import com.sinooceangroup.capital.consumer.feign.ProductorFeignClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Feign Demo
 *
 * @author: Leo.Wang, adwyxx@qq.com
 * @date: 2020/7/17 14:51
 */
@RestController
public class FeignController {
    @Autowired
    ProductorFeignClient feignClient;

    @GetMapping("/api/openfein-hello-world")
    public String helloWorld(){
        String result = feignClient.helloWorld();
        return  "Open Feign Client call:"+result;
    }
}
